libxl/vcpuset: Remove useless limit on max_vcpus.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 3 Apr 2015 20:02:33 +0000 (16:02 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Apr 2015 13:04:28 +0000 (14:04 +0100)
commit9d447f61f911cd94f3e228cc81417e6f8c4e1ae0
treeab0c622ee5d0d516aa39e07aab0c9753563b080a
parent4cc400f70809b0ad14a0f119bdb0f6b6e03a3b00
libxl/vcpuset: Remove useless limit on max_vcpus.

The check is superflous. If the 'max_vcpus' (argument
value) is greater than  pCPU and --ignore-host has not
been supplied we would print an warning and return
and not call this code.

If the --ignore-host parameter had been used we would
never end up in this condition and enforce 'max_vcpus'.

The only time it would be invoked is if max_vcpus < host_cpu
in which case it would set max_vcpus to max_vcpus.

In short - it is dead code.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c